socket:server client
server:server.c group.o regist.o login.o showuser.o help.o list.o single.o
	gcc -o server server.c *.o -lpthread
group.o:main.h group.c
	gcc -c group.c
regist.o:main.h regist.c
	gcc -c regist.c
login.o:main.h login.c
	gcc -c login.c
showuser.o:main.h showuser.c
	gcc -c showuser.c
single.o:single.c main.h
	gcc -c single.c
list.o:main.h list.c
	gcc -c list.c
help.o:main.h help.c
	gcc -c help.c
client:client.c main.h
	gcc -o client client.c *.o -lpthread
clean:
	rm -rfv server client *.o
